Canvas.Paint Event

The area needs to be redrawn, such as when it has been covered by another window and then uncovered. The parameter passed gives you access to the Graphics class methods for drawing.

Syntax

Paint ( g )

Parameters

g

Graphics


Use the Paint event, rather than the Open event, if you want objects drawn with the Graphics class methods to be persistent. On Windows only, the EraseBackground property determines whether REALbasic should erase the entire Canvas when repainting.